﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Garlic
{
    public partial class Index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //if (!IsPostBack)
            //{
            //    ClientScript.RegisterClientScriptBlock(GetType(), "", "<script> document.getElementById('main').src= '" + GetCurrentURL() + "';</script>");
            //}
        }

        public string GetCurrentURL()
        {
            if (Session["mainPage"] != null)
            {
                return Session["mainPage"].ToString();
            }
            else
                return "BasicInfo/FlightsVessels.aspx";
        }

    }//end class
}